package com.gitee.loyo.result;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * T/CEC 102.3-2016
 * 6.7 推送充电状态
 * 6.7.4 返回值
 */
@Data
public class NotifyEquipChargeStatusResult implements Serializable {
    /**
     * 充电订单号
     */
    @JsonProperty("StartChargeSeq")
    private String startChargeSeq;
    @JsonProperty("SuccStat")
    private Integer succStat;

    public boolean succeed(){
        return succStat != null && succStat.intValue() == 0;
    }
}
